// vue.config.js 配置 别名（alias)
const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  configureWebpack: {
    resolve: {
      alias: {
        '@': resolve('src'),
        "@assets": resolve("src/assets"),
        "@view": resolve("src/view"),
        "@components": resolve("src/components"),
        "@api": resolve("src/api")
      }
    }
  },
  lintOnSave: false,
  publicPath: '/fresh/zhuyanling/', // 基本路径
  outputDir: "fresh/zhuyanling", // 输出文件目录
  lintOnSave: false, // eslint 是否在保存时检查 
  assetsDir: 'static', // 配置js、css静态资源二级目录的位置   
}
